package com.chinasoft.user.mapper;

import com.chinasoft.user.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from user")
    List<User> findAll();

    @Insert("insert into user account,password values(account,address)")
    int addUser(User user);


    User findRolesByAccount(String account);

    @Select("select * from user where account = #{account}")
    User findByAccount(String account );
}
